.TH std::shared_lock::owns_lock 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::shared_lock::owns_lock \- std::shared_lock::owns_lock

.SH Synopsis
   bool owns_lock() const noexcept;  \fI(since C++14)\fP

   Checks whether *this owns a locked mutex or not.

.SH Parameters

   \fI(none)\fP

.SH Return value

   true if *this has an associated mutex and has acquired shared ownership of it, false
   otherwise.

.SH See also

   operator bool tests whether the lock owns its associated mutex
                 \fI(public member function)\fP
